home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.1 / card_24994.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  55 lines

  1. -- card: 24994 from stack: in.1
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3837
  5. -- name: subLaunch
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A003
  11. -- rect: left=82 top=302 right=324 bottom=182
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Install
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   if the optionkey is down then pass mouseup
  23.   put installres(XFCN,subLaunch) into it
  24.   if it is empty then play oops
  25.   else answer it
  26. end mouseUp
  27.  
  28.  
  29.  
  30. -- part contents for background part 10
  31. ----- text -----
  32. 14
  33.  
  34. -- part contents for background part 5
  35. ----- text -----
  36. subLaunch
  37.  
  38. -- part contents for background part 6
  39. ----- text -----
  40.  
  41. This will launch an application to run along with Hypercard under MultiFinder.
  42.  
  43. Note:
  44. Version 1.1 of Hypercard makes this XFCN redundant.  However, to make your stacks MulitFinder compatible, you should check the version number of HyperCard that is running (using the version property) and use this function if the version is less than 1.1. --Steve D.
  45.  
  46. -- part contents for background part 7
  47. ----- text -----
  48. Syntax:
  49.  
  50. SubLaunch(programName,docName)
  51. sublaunches the program with optional attached  document.  Both HyperCard and the specified program will then be running, memory permitting (at least 2
  52.  Meg!).  If the arguments have no colons in them (not a pathname), then the ‚ÄúLook for applications in:‚Äù¬†etc. cards in the Home stack are consulted. 
  53.  
  54. SubLaunch return 0 for success, negative numbers for Operating System errors, and small positive numbers for parameter errors, or lack of memory. 
  55.